package com.hardydou.system.service;

import com.hardydou.system.model.SystemDept;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author ：hardy
 * @description：ISystemRoleService
 * @date ：Created in 2020-03-10
 * @Copyright ：Hardydou.com
 */
public interface ISystemDeptService {


    SystemDept findById(Long deptId);


    List<SystemDept> findAll(Map params);

    List<SystemDept> findByids(long[] deptIds);

    @Transactional
    int addDept(SystemDept dept);


    @Transactional
    int update(SystemDept dept);


    @Transactional
    void deleteByDeptId(Long deptId);

}
